# Menu
Mod4 D :Exec j4-dmenu-desktop --dmenu="dmenu -i -fn Terminus-16:bold -nb black -nf red -sb red -sf black" --display-binary

# click on the desktop to get menus
OnDesktop Mouse1 :HideMenus
OnDesktop Mouse2 :WorkspaceMenu
OnDesktop Mouse3 :RootMenu

# scroll on the desktop to change workspaces
OnDesktop Mouse4 :PrevWorkspace
OnDesktop Mouse5 :NextWorkspace

# scroll on the toolbar to change current window
OnToolbar Mouse4 :PrevWindow {static groups} (iconhidden=no)
OnToolbar Mouse5 :NextWindow {static groups} (iconhidden=no)

# alt + left/right click to move/resize a window
OnWindow Mod4 Mouse1 :MacroCmd {Raise} {Focus} {StartMoving}
OnWindowBorder Move1 :StartMoving
OnWindow Mod4 Mouse3 :MacroCmd {Raise} {Focus} {StartResizing NearestCorner}
OnLeftGrip Move1 :StartResizing bottomleft
OnRightGrip Move1 :StartResizing bottomright

# control-click a window's titlebar and drag to attach windows
OnTitlebar Control Mouse1 :StartTabbing

# left click on the titlebar to move the window
OnTitlebar Mouse1 :MacroCmd {Raise} {Focus} {ActivateTab}
OnTitlebar Move1  :StartMoving

# right click on the titlebar for a menu of options
OnTitlebar Mouse3 :WindowMenu

# alt-tab
Mod4 Tab :NextWindow {groups} (workspace=[current])

# open a dialog to run programs
Mod1 F2 :Exec fbrun

# current window commands
Mod4 C :Close
Mod4 Shift C :Kill
Mod4 F :Maximize
Mod4 Shift F :Fullscreen

# change to previous/next workspace
Mod4 Left :PrevWorkspace
Mod4 Right :NextWorkspace

# send the current window to previous/next workspace
Mod4 Shift Left :SendToPrevWorkspace
Mod4 Shift Right :SendToNextWorkspace

# change to a specific workspace
Mod4 1 :Workspace 1
Mod4 2 :Workspace 2
Mod4 3 :Workspace 3
Mod4 4 :Workspace 4
Mod4 5 :Workspace 5
Mod4 6 :Workspace 6
Mod4 7 :Workspace 7
Mod4 8 :Workspace 8
Mod4 9 :Workspace 9

# send the current window to a specific workspace
Mod4 Shift 1 :SendToWorkspace 1
Mod4 Shift 2 :SendToWorkspace 2
Mod4 Shift 3 :SendToWorkspace 3
Mod4 Shift 4 :SendToWorkspace 4
Mod4 Shift 5 :SendToWorkspace 5
Mod4 Shift 6 :SendToWorkspace 6
Mod4 Shift 7 :SendToWorkspace 7
Mod4 Shift 8 :SendToWorkspace 8
Mod4 Shift 9 :SendToWorkspace 9


